package pl.mess.core.tags.elements;

import pl.mess.core.tags.ifc.ControlAttribute;

import javax.servlet.jsp.JspException;
import java.util.List;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: gibffe
 * Date: Apr 6, 2006
 * Time: 8:46:36 AM
 * To change this template use File | Settings | File Templates.
 */
public class MESSTabControlTag extends MESSBaseTag {

    private static final String TAG_NAME = "tabControl";

    /**
     * Header size in pixels
     */
    @ControlAttribute public Integer headerSize = null;

    /**
     * Horizontal flag
     */
    @ControlAttribute public Boolean horizontal = null;

    /**
     * headerFirst flag
     */
    @ControlAttribute public Boolean headerFirst = null;

    /**
     * activeTabIndex property
     */
    @ControlAttribute public Integer activeTabIndex = null;

    /**
     * showButtonsPanel flag
     */
    @ControlAttribute public Boolean showButtonsPanel = null;


    
    /**
     * Returns tag name
     * @return
     */
    public String getTagName() {
        return TAG_NAME;
    }


    /**
     * doStartTag method. Add control-specific logic here. 
     * @return
     * @throws JspException
     */
    public int doStartTag() throws JspException {
        return super.doStartTag();
    }

    /**
     * doEndTag method. Add control-specific logic here.
     * @return
     * @throws JspException
     */
    public int doEndTag() throws JspException {
        return super.doEndTag();
    }



    // property: headerSize
    public void setHeaderSize(Integer size) {
        this.headerSize = size;
    }

    public Integer getHeaderSize() {
        return this.headerSize;
    }

    // property: horizontal
    public void setHorizontal(Boolean mode) {
        this.horizontal = mode;
    }

    public Boolean getHorizontal() {
        return this.horizontal;
    }

    // property: headerFirst
    public Boolean getHeaderFirst() {
        return headerFirst;
    }

    public void setHeaderFirst(Boolean mode) {
        this.headerFirst = mode;
    }

    // property:  activeTabIndex

    public Integer getActiveTabIndex() {
        return activeTabIndex;
    }

    public void setActiveTabIndex(Integer activeTabIndex) {
        this.activeTabIndex = activeTabIndex;
    }

    // property:  showButtonsPanel
    public Boolean getShowButtonsPanel() {
        return showButtonsPanel;
    }

    public void setShowButtonsPanel(Boolean showButtonsPanel) {
        this.showButtonsPanel = showButtonsPanel;
    }
}
